package com.foreknow.dao;

import com.foreknow.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserDao {


    @Select("select * from user where UserName=#{username} and Password=#{password}")
    public User queryByPassword(User user);


    List<User> queryUserbyDeptAndRegistle(@Param("deptId") Integer deptId, @Param("registleId") Integer registleId,
                                          @Param("start") Integer start, @Param("offset") Integer offset);
}
